import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import * as echarts from 'echarts'
// 全局引入vue-jsonp
import {VueJsonp} from 'vue-jsonp'
// 全局引入百度地图插件
import BaiduMap from 'vue-baidu-map'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})

Vue.use(BaiduMap, {
 // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
 ak: 'w9rxjqjtnEXqc0ytjHNmjLXBHGNxmKRe'
})

Vue.use(VueJsonp)

Vue.use(ElementUI)
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
